#pragma once

#include <string>

#include "util/fs.h"

namespace book
{

class ConvertRoute
{
public:
    ConvertRoute(const fs::path &src, const fs::path &dest);

    ConvertRoute(const ConvertRoute &base, const std::string &fileName, const std::string &uriName);

    const fs::path &src() const {
        return src_;
    }

    const fs::path src(const std::string &name) const {
        return src_ / name;
    }

    const fs::path &dest() const {
        return dest_;
    }

    const fs::path dest(const std::string &name) const {
        return dest_ / name;
    }

private:
    const fs::path src_;
    const fs::path dest_;
};

} // namespace book
